<template>
    <div>
      <nav-top :title="dataList.navtopTitle.title" :show="dataList.navtopTitle.show"></nav-top>
      <list :items="dataList.lists"></list>
    </div>
</template>

<script>
  import navTop from '../components/navTop.vue'
  import list from '../components/list.vue'
  import datalist from '../assets/data/data.js'
  export default {
    name: 'roomCardClass',
    data () {
      return {
        dataList: {
          navtopTitle: {

          },
          lists: []
        }
      }
    },
    mounted () {
      this.$nextTick(function () {
        var d = this.$route.params.id
        this.dataList = datalist[d]
      })
    },
    components: {
      navTop,
      list
    }
  }
</script>

